package com.boolib.animate.framework.service.advice;

import com.alibaba.fastjson.JSON;
import com.boolib.animate.commons.exception.ItemNotFoundException;
import com.boolib.animate.framework.entity.AnimateSection;
import com.boolib.animate.framework.entity.AnimateWork;
import com.boolib.animate.framework.entity.QueryWorkSection;
import com.boolib.animate.framework.mapper.define.QueryAnimateWorkMapper;
import com.boolib.animate.framework.service.base.impl.BaseAnimateSectionService;
import com.boolib.animate.framework.service.base.impl.BaseAnimateWorkService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.ArrayList;
import java.util.List;

/**
 * @author nier
 * @create 2020-02-22 0:24
 */
@Slf4j
@Service
public class AnimateSectionService {

    @Autowired
    private QueryAnimateWorkMapper queryAnimateWorkMapper;


    public List<QueryWorkSection> searchWorkSection( ) {
        final List<QueryWorkSection> queryWorkSections =queryAnimateWorkMapper.queryWorkSection();
        log.info(JSON.toJSONString(queryWorkSections));
        return queryWorkSections;
    }
}
